//九九乘法表
document.write("<table>");
    for(var j = 1; j<=9; j++){
        document.write("<tr>");
            for(var i = 1; i<=j; i++){
                document.write("<td>");
                    document.write(i+"x"+j+"="+i*j);
                document.write("</td>");
            }
        document.write("</tr>");
    }
document.write("</table>");